<template>
  <div   class="app-container2">
    <el-form ref="form" :model="ruleForm" label-width="80px" :inline="true">
      <el-row>
        <el-form-item label="时间">
          <el-date-picker v-model="value1" type="year" placeholder="选择年">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="所属组织">
          <el-input v-model="ruleForm.name"></el-input>
        </el-form-item>
      </el-row>
      <el-row>
        <el-form-item label="职务">
          <el-checkbox-group v-model="ruleForm.type">
            <el-checkbox label="党委书记" name="type"></el-checkbox>
            <el-checkbox label="党委委员" name="type"></el-checkbox>
            <el-checkbox label="支部书记" name="type"></el-checkbox>
            <el-checkbox label="总支书记" name="type"></el-checkbox>
            <el-checkbox label="宣传委员" name="type"></el-checkbox>
            <el-checkbox label="组织委员" name="type"></el-checkbox>
            <el-checkbox label="小组长" name="type"></el-checkbox>
            <el-checkbox label="其他" name="type"></el-checkbox>
          </el-checkbox-group>
        </el-form-item>
      </el-row>
    </el-form>
    <div
      
      style="margin-bottom: 24px; display: flex; justify-content: space-between"
    >
      <div  style="display: flex; align-items: center">
        <el-button
          type="danger"
          icon="el-icon-upload2"
          style="margin-right: 12px"
          >导出</el-button
        >
      </div>
      <div  style="display: flex; align-items: center">
        <el-button @click="submit">重置</el-button>
        <el-button type="danger">查询</el-button>
      </div>
    </div>
    <el-table :data="list" style="width: 100%" v-loading="loading">
      <el-table-column prop="date" label="序号" align="center">
      </el-table-column>
      <el-table-column prop="date" label="任职党组织" align="center">
      </el-table-column>
      <el-table-column prop="date" label="姓名" align="center">
      </el-table-column>
      <el-table-column prop="date" label="职务" align="center">
      </el-table-column>
      <el-table-column prop="date" label="任职时间" align="center">
      </el-table-column>
      <el-table-column prop="date" label="任职年限" align="center">
      </el-table-column>
      <el-table-column prop="date" label="任职年龄" align="center">
      </el-table-column>
      <el-table-column prop="date" label="文化程度" align="center">
      </el-table-column>
      <el-table-column prop="date" label="性别" align="center">
      </el-table-column>
    </el-table>
		<pagination
			v-show="ruleForm.total > 0"
			:total="ruleForm.total"
			:page.sync="ruleForm.pageNum"
			:limit.sync="ruleForm.pageSize"
			@pagination="() => {}"
		/>
    <el-dialog title="提示" :visible.sync="dialogVisible" width="500px">
      <el-form
        :model="ruleForm"
        :rules="rules"
        ref="ruleForm"
        label-width="100px"
        class="demo-ruleForm"
      >
        <el-form-item label="活动名称" prop="name">
          <el-input v-model="ruleForm.name"></el-input>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible = false"
          >确 定</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>

<script>
// import { } from "@/api/card/home";
export default {
  data() {
    return {
      loading: false,
      value1: "",
      dialogVisible: false,
      list: [],
      ruleForm: {
        pageNum: 1,
        pageSize: 10,
        total: 0,
        type: [],
      },
      rules: {
        name: [{ required: true, message: "请输入活动名称", trigger: "blur" }],
      },
    };
  },
  methods: {
    submit() {
      
    },
    //切换分页
    handleCurrentChange(val) {
      this.loading = true;
      this.ruleForm.pageNum = val;
    },
    //切换总条数
    handleSizeChange(val) {
      this.loading = true;
      this.ruleForm.pageSize = val;
    },
  },
  created() {},
};
</script>

<style lang="scss" scoped></style>
